#ifndef OperFun_H
#define OperFun_H

//创建于2023.12.20 自动生成
#include "qglobal.h"
#include <QStringListModel>
#include "QStandardItem"
#include "CANCard/GC/ECanVci.h"

class OperFun
{
public:
    static void Can0Data_pro(quint32 CANID,quint8 data[8]);
    static void Can1Data_pro(quint32 CANID,quint8 data[8]);
    static void RunDataProForm();
    static float PressureSensor_Count(quint16 price,float X_L,float X_H,float Y_L,float Y_H);   //输入量:price，需要值Y,X_L: Y_L的X数据,X_H:Y_H的X数据,Y_L:最小转换Y数据,Y H:最大转换Y数据:
    static float flowmeter_Count(quint16 price,float ratio);  //price为值,ratio仪表的流量系数
    static void rest_data_info();  //信息参数复位
    static void Fault_processing();  //故障处理
    static void EQ_runinfo();   //设备运行信息
    };

typedef struct OperFun_INFO
{
    QString name= "处理数据";
    QStringListModel FaultListModel; //故障列表
    QStringList FaultList; //故障列表
    quint8 CAN_count;   //计数器
}OperFun_INFO;
typedef struct OperFun_MA
{


}OperFun_MA;
extern OperFun_INFO OperFun_info;
extern OperFun_MA OperFun_ma;
extern QStandardItemModel OperFun_mode_info;
#endif
